package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cm.cool.web.bean.Param;
import cm.cool.web.service.param.ParamService;
import cm.cool.web.util.respon.R;

@Controller
@RequestMapping("/Param")
public class ParamController {
		
	@Autowired
	ParamService paramService;
	
	/**
	 * 查找所有的参数
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/findAll")
	public R selectAll(Param params){
		return paramService.findAll(params);
	}
	
	/**
	 * 修改Ec参数
	 * @param params
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/updateEc")
	public R updateEc(Param params){
		return paramService.updateParam(params);
	}
}
